package patrol.mobile.com.mobilepatrol.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.JobEvaluationBean;

/**
 * Created by admin on 2018/9/13.
 */

public class JobEvaluationAdapter extends BaseQuickAdapter<JobEvaluationBean> {
    public JobEvaluationAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_job_evaluation;
    }

    @Override
    protected void convert(BaseViewHolder holder, JobEvaluationBean item) {
        holder.setText(R.id.tv_num, holder.getAdapterPosition() + 1 + "");
        holder.setText(R.id.tv_name1, "被考核人：" + item.getCheckName());
        holder.setText(R.id.tv_name2, "考核人：" + item.getAssessor());
        holder.setText(R.id.tv_kou, "扣" + item.getDeductScore() + "分");
        holder.setText(R.id.tv_yu, "余" + item.getTotalScore() + "分");
        holder.setText(R.id.tv_status, item.getAuditName());
    }
}
